<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
</head>

<body>
   <div id="pwd_title">
   </div>
   <div>
        <input type="button" value="修改密码" onclick="pwdMod();"/>
   </div>
</body>
<script>
    function saveToken(token){
        localStorage.setItem("token",token);
        $('#pwd_title').html(token);
    }

    function pwdMod(){
        //jsCallBack.show("from js page!")
        //var callbackUrl = "js://srfaweb?callback=pwdMod&title=from js page!";
        var callbackUrl = "js://srfaweb?callback=pwdMod&code=0&msg=密码修改成功&finish=1";
        document.location = callbackUrl;
        //var result = prompt(callbackUrl);
        //alert("demo " + result);
    }
</script>
</html>